import {get_user} from  "@/axios/login";
import {get_fa} from  "@/axios/fetusAction";
import {get_feed} from  "@/axios/feedData";
import {get_wb} from  "@/axios/weibo";


export function whole_init(permission){
    let per = {}
    per.fa = false
    per.fd = false
    per.wb = false

    permission.forEach(e =>{
        switch (e.authority){
            case "fa":
                per.fa = true
                break
            case "fd":
                per.fd = true
                break
            case "wb":
                per.wb = true
                break
        }

    })

    return per
}
